package com.yale.springbootsecuritymd5.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import javax.persistence.EntityManagerFactory;

/**
 * Created by yale on 2017/8/18.
 */
@Configuration
@EntityScan(basePackages = {"com.yale.springbootsecuritymd5.model"})
@EnableJpaRepositories(basePackages = {"com.yale.springbootsecuritymd5.model.repository"})
public class JpaConfig {

    @Autowired
    private EntityManagerFactory entityManagerFactory;

}
